home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / cards / NFORCE.conf < prev    next >
Text File  |  2006-01-09  |  3KB  |  227 lines

  1. #
  2. # Configuration for the nVIDIA nForce/2/3
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. NFORCE.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type softvol
  13.     slave.pcm {
  14.         type hw
  15.         card $CARD
  16.         device 0
  17.     }
  18.     control {
  19.         name "PCM Playback Volume"
  20.         card $CARD
  21.     }
  22. }    
  23.  
  24. # default with dmix+softvol & dsnoop
  25. NFORCE.pcm.default {
  26.     @args [ CARD ]
  27.     @args.CARD {
  28.         type string
  29.     }
  30.     type asym
  31.     playback.pcm {
  32.         type plug
  33.         slave.pcm {
  34.             type softvol
  35.             slave.pcm {
  36.                 @func concat
  37.                 strings [ "dmix:" $CARD ]
  38.             }
  39.             control {
  40.                 name "PCM Playback Volume"
  41.                 card $CARD
  42.             }
  43.         }
  44.     }
  45.     capture.pcm {
  46.         type plug
  47.         slave.pcm {
  48.             @func concat
  49.             strings [ "dsnoop:" $CARD ]
  50.         }
  51.     }
  52. }
  53.  
  54. <confdir:pcm/surround40.conf>
  55.  
  56. NFORCE.pcm.surround40.0 {
  57.     @args [ CARD ]
  58.     @args.CARD {
  59.         type string
  60.     }
  61.     type softvol
  62.     slave.pcm {
  63.         type hooks
  64.         slave.pcm {
  65.             type hw
  66.             card $CARD
  67.             device 0
  68.         }
  69.         hooks.0 {
  70.             type ctl_elems
  71.             hook_args [
  72.             {
  73.                 name "Channel Mode"
  74.                 preserve true
  75.                 value "4ch"
  76.                 lock true
  77.                 optional true
  78.             }
  79.             # for old drivers
  80.             {
  81.                 name "Line-In As Surround"
  82.                 preserve true
  83.                 value true
  84.                 optional true
  85.             }
  86.             {
  87.                 name "Surround Down Mix"
  88.                 preserve true
  89.                 value off
  90.                 lock true
  91.                 optional true
  92.             }
  93.             ]
  94.         }
  95.     }
  96.     control {
  97.         name "PCM Playback Volume"
  98.         card $CARD
  99.     }
  100. }
  101.  
  102. <confdir:pcm/surround41.conf>
  103. <confdir:pcm/surround50.conf>
  104. <confdir:pcm/surround51.conf>
  105.  
  106. NFORCE.pcm.surround51.0 {
  107.     @args [ CARD ]
  108.     @args.CARD {
  109.         type string
  110.     }
  111.     type softvol
  112.     slave.pcm {
  113.         type route
  114.         ttable.0.0 1
  115.         ttable.1.1 1
  116.         ttable.2.4 1
  117.         ttable.3.5 1
  118.         ttable.4.2 1
  119.         ttable.5.3 1
  120.         slave.pcm {
  121.             type hooks
  122.             slave.pcm {
  123.                 type hw
  124.                 card $CARD
  125.                 device 0
  126.             }
  127.             hooks.0 {
  128.                 type ctl_elems
  129.                 hook_args [
  130.                 {
  131.                     name "Channel Mode"
  132.                     preserve true
  133.                     value "6ch"
  134.                     lock true
  135.                     optional true
  136.                 }
  137.                 # for old drivers
  138.                 {
  139.                     name "Line-In As Surround"
  140.                     preserve true
  141.                     value true
  142.                     optional true
  143.                 }
  144.                 {
  145.                     name "Mic As Center/LFE"
  146.                     preserve true
  147.                     value true
  148.                     optional true
  149.                 }
  150.                 {
  151.                     name "Surround Down Mix"
  152.                     preserve true
  153.                     value off
  154.                     lock true
  155.                     optional true
  156.                 }
  157.                 {
  158.                     name "Center/LFE Down Mix"
  159.                     preserve true
  160.                     value off
  161.                     lock true
  162.                     optional true
  163.                 }
  164.                 ]
  165.             }
  166.         }
  167.         slave.channels 6
  168.     }
  169.     control {
  170.         name "PCM Playback Volume"
  171.         card $CARD
  172.     }
  173. }
  174.  
  175. <confdir:pcm/iec958.conf>
  176.  
  177. NFORCE.pcm.iec958.0 {
  178.     @args [ CARD AES0 AES1 AES2 AES3 ]
  179.     @args.CARD {
  180.         type string
  181.     }
  182.     @args.AES0 {
  183.         type integer
  184.     }
  185.     @args.AES1 {
  186.         type integer
  187.     }
  188.     @args.AES2 {
  189.         type integer
  190.     }
  191.     @args.AES3 {
  192.         type integer
  193.     }
  194.     type hooks
  195.     slave.pcm {
  196.         type hw
  197.         card $CARD
  198.         device 2
  199.     }
  200.     hooks.0 {
  201.         type ctl_elems
  202.         hook_args [
  203.             {
  204.                 name "IEC958 Playback AC97-SPSA"
  205.                 device 0
  206.                 lock true
  207.                 preserve true
  208.                 value 0
  209.             }
  210.             {
  211.                 name "IEC958 Playback Default"
  212.                 device 0
  213.                 lock true
  214.                 preserve true
  215.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  216.             }
  217.             {
  218.                 name "IEC958 Playback Switch"
  219.                 device 0
  220.                 lock true
  221.                 preserve true
  222.                 value true
  223.             }
  224.         ]
  225.     }
  226. }
  227.